#ifndef MANUALWIDGET_H
#define MANUALWIDGET_H

#include <QtGui>

#include "ui_manualwidget.h"

class ManualWidget: public QWidget, private Ui::ManualWidget
{
Q_OBJECT

public:

ManualWidget( QString lang );
~ManualWidget();

public slots:

void show_chapter( QTreeWidgetItem *, int );
void next_chapter();
void prev_chapter();

protected:

void closeEvent( QCloseEvent * e );

private:

QString lang;
QMap<int, int> chapters;
QMap<int, QString> chapter_names;
QMap<int, QStringList> paragr_names;
void writeSettings();
void readSettings();

};

#endif // MANUALWIDGET_H
